package main

import "fmt"

func main() {

	m := map[string]struct{}{
		"path1": {},
		"path2": {},
		"path3": {},
	}

	paths := []string{
		"path1", "path", "path3", "path4",
	}

	for _, path := range paths {
		if _, exists := m[path]; exists {
			fmt.Printf("key %s is  existing\n", path)
		} else {
			fmt.Printf("key %s is not existing\n", path)
		}
	}

}
